<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densityDpi=device-dpi" />
<script type="text/javascript" src="sencha/sencha-touch.js"></script>
<script language="javascript">
	function go_login() {
		if (Ext.is.Phone) {
			var input = document.createElement("input");
			input.setAttribute("type", "hidden");
			input.setAttribute("name", "invis");
			input.setAttribute("value", "mobile");
			document.login.appendChild(input);
			document.login.submit();
		} else {
			if (document.login.id.value.length <= 0) {
				alert("이메일을 입력하세요");
				document.login.id.focus();
				return false;
			}
			if (document.login.pass.value.length <= 0) {
				alert("비밀번호를 입력하세요");
				document.login.pass.focus();
				return false;
			}
			document.login.submit();
		}
		
	}
	function check() {
		if (Ext.is.Phone) {
			 window.location = "mobile_UI/start.html"
		}
	}
</script>
<title>Insert title here</title>
</head>

<body onLoad=check()>
	<form name="login" method="post" action="mailLogin.do">
		Mail 아이디 : <input type="text" name="id" /> <br /> Mail 비밀번호 : <input
			type="password" name="pass" /> <input type="button" value="로그인"
			onclick="go_login()">
	</form>
</body>
</html>